//
//  NSDictionary+SafeConvert.h
//  testDemos
//
//  Created by royce on 2019/2/26.
//  Copyright © 2019 Facebook. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSMutableDictionary (SafeConvert)

- (void)sy_setObject:(id)value forKey:(NSString *)key;

- (void)sy_setInteger:(NSInteger)value forKey:(NSString *)key;

- (void)sy_setBool:(BOOL)value forKey:(NSString *)key;

@end

@interface NSDictionary (SafeConvert)

- (NSString *)sy_stringForKey:(NSString *)key;

- (BOOL)sy_boolForKey:(NSString *)key;

- (NSInteger)sy_integerForKey:(NSString *)key;
@end
NS_ASSUME_NONNULL_END
